import { errFunc } from "./index";

export default [
  {
    path: "/statistics/overview",
    name: "statisticsOverview",
    meta: {
      title: '数据总览',
      noCache: true,
      affix: true,
      module: "statisticsOverview", // 用于菜单判断当前选中项
      parent: "statistics" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/statistics").catch(err => {
        errFunc(err);
      })
  },
  {
    path: "/statistics/record",
    name: "statisticsRecord",
    meta: {
      noCache: true,
      title: '数据明细',
      module: "statisticsRecord", // 用于菜单判断当前选中项
      parent: "statistics" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/statistics/record").catch(err => {
        errFunc(err);
      })
  },
  {
    path: "/statistics/accountnum",
    name: "statisticsAccountnum",
    meta: {
      noCache: true,
      title: '推广玩家',
      module: "statisticsAccountnum", // 用于菜单判断当前选中项
      parent: "statistics" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/statistics/accountnum").catch(err => {
        errFunc(err);
      })
  }
];
